package com.itheima.day05;

import java.util.Scanner;

public class printDy {
    public static void main(String[] args) {
//        main1();



        System.out.println(add(20, 30));
    }

    public static int add(int a, int b) {
        int c = a > b ? a : b;
        return c;
    }

    }

   /* public static void main1() {
        System.out.println("请输入星期数");
        System.out.println("无需查看0退出");
        Scanner sc = new Scanner(System.in);

        while (true) {
            int week = sc.nextInt();
            switch (week) {
                case 0:
                    System.out.println("结束");
                    return;
                case 1:
                    System.out.println("1");
                    break;
                case 2:
                    System.out.println("2");
                    break;

            }

        }
  }
  }*/

